--[[

        gemstone.lua
        exported by excel2lua.py
        from file:gemstone.xlsx

--]]

local _data = {
  [1] = {id = 1,name = '绿刀',res = '11.0',},
  [2] = {id = 2,name = '昊天镜',res = '8.0',},
}

local id_to_index={
   [1] = 1,
   [2] = 2,
}

local gemstone={}

function gemstone.length() 
   return #_data 
end 

function gemstone.indexOf(index) 
   return _data[index] 
end 

function gemstone.get(id) 
  return gemstone.indexOf(id_to_index[id])
end 

return gemstone